﻿CREATE TABLE [dbo].[Recomendados](
	[id_recomendados] [int] IDENTITY(1,1) NOT NULL,
	[id_visitante] [int] NULL,
	[id_local] [int] NULL,
 CONSTRAINT [PK_Recomendados] PRIMARY KEY CLUSTERED 
(
	[id_recomendados] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  ForeignKey [FK_Recomendados_Local]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[Recomendados]  WITH CHECK ADD  CONSTRAINT [FK_Recomendados_Local] FOREIGN KEY([id_local])
REFERENCES [dbo].[Local] ([id_local])
GO

ALTER TABLE [dbo].[Recomendados] CHECK CONSTRAINT [FK_Recomendados_Local]
GO
/****** Object:  ForeignKey [FK_Recomendados_Visitante]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[Recomendados]  WITH CHECK ADD  CONSTRAINT [FK_Recomendados_Visitante] FOREIGN KEY([id_visitante])
REFERENCES [dbo].[Visitante] ([id_visitante])
GO

ALTER TABLE [dbo].[Recomendados] CHECK CONSTRAINT [FK_Recomendados_Visitante]